package com.okami.clazz.one;

/**
 * @description:
 * @author: TanJingyu
 * @create: 2021-03-10 16:14
 **/
class Demo {
    private String privateStr;
    private static String privateStaticStr;
    private static final String privateStaticFinalStr = "coderk";
    public String publicStr;

    @Override
    protected void finalize() throws Throwable {
        super.finalize();
    }

    static {
        System.out.println("加载了。。。。。");
    }

    public Demo() {
        System.out.println("空参构造方法");
    }

    public String getPrivateStr() {
        return privateStr;
    }

    public void setPrivateStr(String privateStr) {
        this.privateStr = privateStr;
    }

    public static String getPrivateStaticStr() {
        return privateStaticStr;
    }

    public static void setPrivateStaticStr(String privateStaticStr) {
        Demo.privateStaticStr = privateStaticStr;
    }

    public static String getPrivateStaticFinalStr() {
        return privateStaticFinalStr;
    }

    public String getPublicStr() {
        return publicStr;
    }

    public void setPublicStr(String publicStr) {
        this.publicStr = publicStr;
    }
}
